<% include header %>
<div id="article">
<% posts.forEach(function (post, index) { %>
<div class="article">
    <p>
        <img class="titimg" src=<%= '/images/' + post.picUrl %> alt="">
    </p>
<p><h2 class="arctitle"><a href="/u/<%= post.name %>/<%= post.time.minute %>/<%= post.title %>"><%= post.title %></a></h2></p>
    <div id="content">
<p id="info">
    <span class="author">作者：<a href="/u/<%= post.name %>"><%= post.name %></a></span> |
    <span class="datas">发布于：<a><%= post.time.minute %></a></span> |
    <span class="tAg">标签：</span>
    <% post.tags.forEach(function (tag, index) { %>
    <% if (tag) { %>
    <a class="tagcontent" href="/tags/<%= tag %>"><%= tag %></a>
    <% } %>
    <% }) %>
</p>
        <div class="content">
<p><%- post.post %></p>
        </div>
<p class="reader">阅读：<%= post.pv %> | 评论：<%= post.comments.length %></p>
    </div>
</div>
<% }) %>
</div>
<%- include paging %>
<% include footer %>

